import 'package:flutter/material.dart';
import '/components/page/common.dart';

// 空页面，跳转示范 或 404
class EmptyPage extends StatelessWidget {
  const EmptyPage({super.key,});

  @override
  Widget build(BuildContext context) {

    Map args = ModalRoute.of(context)!.settings.arguments as Map;

    return CommonPage(
      title: args['title'] ?? '404标题',
      isShowLine: true,
      child: Center(
        child: Text(args['title'] ?? '404页面'),
      ),
    );
  }
}